import { Spider } from "./class/Spider";
import { Extractor1 } from "./extract/Extractor1";
import { Extractor2 } from "./extract/Extractor2";


Spider.create("zongheng", ["http://www.zongheng.com/"]).
    then(spider => {
        spider.use(Extractor1)
    })

Spider.create("book", [], 2).
    then(spider => {
        spider.use(Extractor2)
    })
